/**
 * Created by zhouli on 19/7/24
 * Email li.zhou@huilianyi.com
 */
import httpFetch from 'share/httpFetch';
import config from 'config';
import errorMessage from 'share/errorMessage';
export default {
  //人员已分配权限列表
  getUsePermission: function (params) {
    // let params={
    //   userId
    // }
    return new Promise(function (resolve, reject) {
      httpFetch.get(config.baseUrl + '/api/security/permission/user/deploy/permission', params)
        .then(function (response) {
          resolve(response)
        })
        .catch(function (err) {
          errorMessage(err.response);
          reject(err.response);
        })
    })
  },

}

